<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="A" method="get">
姓名:<input type="text" name="username">
密码:<input type="password" name="password">
<input type="submit" value="login">
</form>

<form action="/B" method="post">
  姓名:<input type="text" name="username" value="">
  密码:<input type="password" name="password">
  <input type="submit" value="login">
</form>

</body>
</html>